<template>
	<view class="region1">
		<!-- 自定义导航栏 -->
		<view class="navBarBox">
			<!-- 状态栏占位 -->
			<view class="statusBar" :style="{ paddingTop: statusBarHeight + 'px' }"></view>
			<!-- 真正的导航栏内容 -->
			<view class="navBar">
				<view class="goback">
					<view @click="goBack" class="goicon"style="background:url(../../../static/goback.png);background-size:contain;background-repeat: no-repeat;">			
					</view>
				</view>
				<view class="title">学校/平台审核中</view>
				<view class="right">	
							
				</view>
			</view>
		</view>
		<view class="black-strip"></view>
		<view class="information">
			<view class="na">地区</view>
			
			<view class="val" >{{regAdd.address}}</view>
		</view>
		<view class="information">
			<view class="na">机构类型</view>
			<view class="val" >东风培训机构</view>
		</view>
		<view class="information">
			<view class="na">学校名称</view>
			<view class="val">吉泰小学</view>
		</view>
		<view class="information">
			<view class="na">姓名</view>
			<view class="val">{{regAdd.teacherName}}</view>
		</view>
		<view class="information">
			<view class="na">联系电话</view>
			<view class="val">{{regAdd.mobile}}</view>
		</view>
		<view class="information">
			<view class="na">性别</view>
			<view class="val">{{regAdd.teacherSex}}</view>
		</view>
		<view class="information">
			<view class="na">学历</view>
			<view class="val">{{regAdd.eduBackground}}</view>
		</view>
		<view class="information">
			<view class="na">职称</view>
			<view class="val">{{regAdd.position}}</view>
		</view>
		<view class="information">
			<view class="na">证书编号</view>
			<view class="val">{{regAdd.positionCertificate}}</view>
		</view>
		<view class="information">
			<view class="na">证书图片</view>
			<image class="img" :src='regAdd.positionCertificatePic' mode=""></image>
		</view>
		<view class="information">
			<view class="na">资质认证</view>
			<view class="val">{{regAdd.teacherQualification}}</view>
		</view>
		<view class="information">
			<view class="na">证书编号</view>
			<view class="val">{{regAdd.teacherQualificationNum}}</view>
		</view>
		<view class="information">
			<view class="na">证书图片</view>
			<image class="img" :src='regAdd.teacherQualificationPic' mode=""></image>
		</view>
		<view class="information">
			<view class="na" style="margin-bottom: 30rpx;">教学经历/成果</view>
			<textarea :value="regAdd.eduResult" placeholder="请输入......"/>
		</view>
	</view>
</template>

<script scoped>
	export default {
		data() {
			return {
				regAdd:{
					address:'四川省武侯区吉泰五路88号香年广场',//地区
					teacherName:'',//姓名***8
					teacherSex:'',//性别12
					idCard:'',//身份证号****3
					eduResult:'',//工作历史****2
					mobile: '',//电话4
					eduBackground:'',//学历1
					position:'',//职称5
					positionCertificate:'',//职称证书编号****6
					positionCertificatePic:'',//职称证书图片	7			
					teacherQualification:'',//资格认证9
					teacherQualificationNum:'',//教师资格认证编号*****10
					teacherQualificationPic:'',//教师资格认证图片11
					torgId:'',
				},
				idCard:'',
				// 状态栏高度
				statusBarHeight: 0,
				// 导航栏高度
				navBarHeight: 82 + 11,	
			}
		},
		created() {
			//获取手机状态栏高度
			this.statusBarHeight = uni.getSystemInfoSync()['statusBarHeight'];
		},
		onLoad: function (e) { //e为object类型，会序列化上个页面传递的参数
		    // console.log(e.idCard); //打印出上个页面传递的参数。
			this.idCard='510923199908114618'
			this.$myRequest({
				url: '/teacher/queryOrgTeacher',
				data:{
					"idCard":this.idCard
				},
				success: (res) => {
					var arr=res.data.data;
					console.log(arr);
					this.regAdd.teacherName=arr.teacherName;//姓名***8
					this.regAdd.idCard=arr.idCard;//身份证号****3
					this.regAdd.eduResult=arr.eduResult;//工作历史****2
					this.regAdd.mobile=arr.mobile;//电话4
					this.regAdd.eduBackground=arr.eduBackground;//学历1
					this.regAdd.position=arr.position;//职称5
					this.regAdd.positionCertificate=arr.positionCertificate;//职称证书编号****6
					this.regAdd.positionCertificatePic=arr.teacherQualificationPic;//职称证书图片	7			
					this.regAdd.teacherQualification=arr.teacherQualification;//资格认证9
					this.regAdd.teacherQualificationNum=arr.teacherQualificationNum;//教师资格认证编号*****10
					this.regAdd.teacherQualificationPic=arr.teacherQualificationPic;//教师资格认证图片11
					this.regAdd.torgId=arr.torgId;
					if(arr.teacherSex==1){
						this.regAdd.teacherSex='男'
					}else{
						this.regAdd.teacherSex='女'
					}
				},
			})
		},
		methods: {
			goBack(){
				// 此处是写返回页面的方法、					
				uni.navigateBack({
				delta: 1//返回只上一级页面
				});
			}
		}
	}
</script>

<style>
	.navBarBox .navBar {
			padding: 3rpx 50rpx;
			padding-bottom: 8rpx;
			display: flex;
			justify-content: space-between;
	
			line-height: 93rpx;
			font-size: 40rpx;
		}
	.black-strip {
		height: 20rpx;
		background-color: #fafafa;
	}
		.goback {
			flex: 1;
			height: 100%;
		}
		.goicon{
			width: 30rpx;
			height: 30rpx;
			background-color: #00BEA9;
			margin-top: 30rpx;
		}
		.title {
			flex: 3;
			height: 100%;
			
		}
		.right{
			flex: 1;
		}
	.region1{
		margin-top: 40rpx;
		margin-left: 24rpx;
		/* background-color: #fff; */
	}
	.information{
		margin-top: 74rpx;
		
	}
	.na{
		height: 60rpx;
		width: 210rpx;
		color: #C8C7CC; 
		float: left;
	}
	.img{
		width: 184rpx;
		height: 184rpx;
	}
	textarea{
		width: 700rpx;
		height: 180rpx;
		border:  #EBEBEB 1px solid;
		margin-bottom: 20rpx;
	}
</style>
